cmake_minimum_required(VERSION 2.8)
project(adex)

set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -rdynamic -O3 -g -std=c++11 -Wall -Wno-deprecated -Werror -Wno-unused-function")

set(LIB_SRC
    adex/logger.cc
    )

add_library(adex SHARED ${LIB_SRC})
#add_library(adex_static STATIC ${LIB_SRC})
#SET_TARGET_PROPERTIES(adex_static PROPERTIES OUTPUT_NAME "adex")

add_executable(test tests/test.cc)
add_dependencies(test adex)
target_link_libraries(test adex)

SET(EXECUTABLE_OUTPUT_PATH $(PROJECT_SOURCE_DIR)/../bin)
SET(LIBRARY_OUTPUT_PATH $(PROJECT_SOURCE_DIR)/../lib)
